{layout name="/base"}
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1>管理 <small>申请提现中信息</small></h1>
        <ol class="breadcrumb">
          <li><a href="/index"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li class="active"><i class="fa fa-table"></i> 申请提现中信息</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          这里可以修改、删除订单信息 
        </div>
      </div>
    </div>
     <form class="form-horizontal" role="form" action="/cashs/index" method="get">
      <div class="form-group col-sm-3" style="margin-right:10px;">
        <label for="">选择搜索条件</label>
        <select class="form-control" name="searchfield">
          <option value="">全部</option>
          {if input('get.searchfield') eq 'amount'}
          <option value="amount" selected="true">提现金额</option>
          <option value="bank_num">提现账号</option>
           {elseif input('get.searchfield') eq 'bank_num' /}
          <option value="amount">提现金额</option>
          <option value="bank_num" selected="true">提现账号</option>
          {else /}
          <option value="amount">提现金额</option>
          <option value="bank_num">提现账号</option>
          {/if}
        </select>
      </div>
      <div class="form-group col-sm-3 input-group">
        <label for="">请输入搜索条件</label>
        <input class="form-control" type="text" placeholder="请输入搜索条件" value="{:input('get.keyword')}" name="keyword">
        <label for="">&nbsp;</label>
        <span class="input-group-btn">
          <button class="btn btn-default" type="submit">搜索</button>
        </span>
      </div>
      <div class="clearfix"></div>
    </form>
    <!-- /.row -->
    <div class="row">
      <!-- 选项卡start -->
      <div class="bs-example">
        <!-- 选项卡标题start -->
        <ul class="nav nav-tabs" style="margin-bottom:15px;">
         <li class="active">
            <a href="/cashs/index">提现申请中</a>
          </li>
          <li>
            <a href="/cashs/passindex">申请通过提现中</a>
          </li>
          <li>
            <a href="/cashs/finishindex">提现成功</a>
          </li>
          <li>
            <a href="/cashs/failedindex">提现失败</a>
          </li>
        </ul>
        <!-- 选项卡标题end -->
      </div>
      <!-- 选项卡end -->
      <div class="col-lg-12">
        <div class="table-responsive">
          <table class="table table-bordered table-hover table-striped tablesorter">
            <thead>
              <tr>
              	<th>提现人姓名</th>
              	<th>开户行</th>
                <th>提现账号</th>
                <th>提现金额</th>
                <th>申请提现时间</th>
              </tr>
            </thead>
             <tbody>
             	{foreach $list as $v}
                <tr>
                	<td>{$v->users($v.user_id)}</td>
                	<td>{$v.open_bank}</td>
                	<td>
                			<a href="/cashs/read?id={$v.id}" title="查看订单详情">{$v.bank_num}</a><br>
                 			<a href="/cashs/read?id={$v.id}" title="查看订单详情">查看详情</a>
                	</td>
                	<td>{$v.amount}元</td>
                	<td>{$v.created_at}</td>
                </tr>
              {/foreach}
            </tbody>
          </table>
        </div> 
      </div>
    </div>
    <!-- /.row -->
  </div><!-- /#page-wrapper -->

